import { Global, Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import {
  GlobalConfigV1Controller,
} from './global-config.v1.controller';
import {
  GlobalConfigV1AdminController,
} from './global-config.v1-admin.controller';
import { GlobalConfigModel } from './global-config.model';
import { GlobalConfigService } from './global-config.service';
import { GlobalConfigV1MobileController } from "./global-config.v1-mobile.controller";

@Global()
@Module({
  imports: [TypeOrmModule.forFeature([GlobalConfigModel])],
  controllers: [GlobalConfigV1Controller, GlobalConfigV1AdminController, GlobalConfigV1MobileController],
  providers: [GlobalConfigService],
  exports: [GlobalConfigService]
})
export class GlobalConfigModule {}
